﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControls_HotGood : UCBase
{
    public UserControls_HotGood()
    {
        Name = "热卖商品";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadHotGood();
    }

    private void LoadHotGood()
    {
        long ShopID = _Site.ID;
        dlHotGood.DataSource =new DAL.Views.V_Site_GoodShopStock().Open("top 8 *","","");
        dlHotGood.DataBind();
    }
    protected void dlHotGood_ItemDataBound(object sender, DataListItemEventArgs e)
    {        
        Label lbHotGood = (Label)e.Item.FindControl("lbHotGood");
        lbHotGood.Text = "NO." + Convert.ToString( (e.Item.ItemIndex+1));
    }
}
